<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resource/css/login.css" />
<title>XX管理系统</title>
<script language="javascript">
	function validate(fm){
	     //  document.getElementById("subbutton").disabled=true;//不能重复提交
	
	      // fm.submit();
	}

</script>
<style type="text/css">

</style>
</head>
	<body ><br />
<br />

<s:form action="loginAction_login.do" namespace="user" method="post">
<div class="nav">
   <div class="navbg">
       <div class="navtable">
           <div>
              <s:textfield name="name"   size="30" maxlength="50" style="width:200px;" ></s:textfield>
       </div>
       <div style="padding-top: 15px;">
       		<s:password name="pwd" maxlength="100" size="30" style="width:200px;"></s:password>
       </div>
       <div style="padding-top: 16px;">
          <input type="image" src="<%=request.getContextPath()%>/resource/img/login/Login.png"  />
           </div>
       </div>
   </div>
</div>

<s:iterator value="fieldErrors">
 <s:iterator value="value">
   <s:set name="msg" value="value.get(0)" />
   <s:set name="msg" value="#msg.replaceAll('null','')" />
     <script language="JavaScript"> 
     alert("${index}<s:property value="msg" escape="false"/>") 
    </script> 
 </s:iterator>
</s:iterator>
</s:form>
	</body>
</html>
